local upload = require "resty.upload"
local cjson = require "cjson"
local template = require("resty.template")

local _M = {
    _VERSION = '1.00'
}

function _M.index()
    local client_ip = ngx.var.remote_addr   -- ngx lua api  ngx.var 表示获取nginx自己的值，remote_addr为nginx中的客户端地址

    local page = {}
    page.title = "王晋蜀的个人空间"
    page.description = "这里将深入探讨编程技术，包括linux, c, c++, rust等语言，vim，emacs, 架构设计等。:)"
    page.ip = client_ip
	local context = {page = page}
	template.render("video/index.htm", context)
end

return _M
